<#include "../common/layout.ftl"/>
<@layout>
<div class="well">
		<h1>代驾员任务</h1>
		<button type="button" class="btn btn-info" onclick="javascript:history.back();">返回</button>
  </div>

<div class="well">

	<table class="table table-bordered table-striped">
		<thead>
		  <tr>
		    <th>订单号</th>
			<th>任务状态</th>
			<th>用户区域</th>
			<th>起点</th>
			<th>终点</th>
			<th>里程</th>
			<th>总金额</th>
			<th>扣除费用</th>
			<th>支付方式</th>
			<th>订单类型</th>
			<th>下单时间</th>
			<th>派单时间</th>
		  </tr>
		</thead>
		<tbody>
		<#list list as job>
		  <#if job.status != -1>
		  <tr>
		    <td> ${job.order_id!" "}</td>
			<td>
			  <#if job.order_state == 0>
			  	<span class="label label-warning">未接受</span>
			  <#elseif job.order_state == 1>
			  	<span class="label label-success">已接受</span>
			  <#elseif job.order_state == 2>
			  	<span class="label label-success">已到达</span>
			  <#elseif job.order_state == 3>
			  	<span class="label label-success">开始代驾</span>
			  <#elseif job.order_state == 4>
			  	<span class="label label-success">订单完成</span>
			  <#elseif job.order_state == 5>
			  	<span class="label label-success">其他</span>
			  <#elseif job.order_state == 6>
			  	<span class="label label-success">已接受</span>
			  <#elseif job.order_state == 7>
			  	<span class="label label-success">临时订单</span>
			  <#elseif job.order_state == 8>
			  	<span class="label label-success">未接取消待审核</span>
			  <#elseif job.order_state == 9>
			  	<span class="label label-success">已接取消待审核</span>
			  <#elseif job.order_state == 10>
			  	<span class="label label-success">撤销待审核</span>
			  <#elseif job.order_state == 11>
			  	<span class="label label-success">已接订单取消已审核</span>
			  <#elseif job.order_state == 12>
			  	<span class="label label-success">撤销待审核</span>
			  <#else>
			  	<span class="label label-inverse">其他</span>
			  </#if>
			</td>
			<td>
			 ${job.userarea!" "}
			</td>
			<td>
			 ${job.startpoint!" "}
			</td>
			<td>
			 ${job.endpoint!" "}
			</td>
			<td>
			 ${job.kilometre!" "}
			</td>
			<td>
			 ￥${job.totalmoney!" "}
			</td>
			<td>
			 ￥${job.charges!" "}
			</td>
			<td>
			 <#if job.pay_type == 0>
			  	<span class="label label-info">现金</span>
			  <#elseif job.pay_type == 1>
			  	<span class="label label-warning">支票</span>
			  <#elseif job.pay_type == 2>
			  	<span class="label label-success">账户余额</span>
			  <#else>
			  	<span class="label label-inverse">其他</span>
			  </#if>
			</td>
			<td>
			 <#if job.order_type == 0>
			  	<span class="label label-info">普通</span>
			  <#else>
			  	<span class="label label-inverse">其他</span>
			  </#if>
			</td>
			<td>
			 <#if job.create_time??> 
			    ${job.create_time?string("yyyy-MM-dd HH:mm:ss")}
			  </#if>
			</td>
			<td>
			 <#if job.job_time??> 
			    ${job.job_time?string("yyyy-MM-dd HH:mm:ss")}
			  </#if>
			</td>
		  </tr>
		  </#if>
		</#list>
		</tbody>
	</table>  
</div>
          
</@layout>